-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add explicit development instructions to the README. #390
base: main
Are you sure you want to change the base?
Conversation
I was unable to get solid queue to work in development until i saw this PR. the Puma.rb edit is vital to get any output regarding development setup. The base note pointing to a plugin mentions nothing about it being required for a native puma+sqlite setup to even catch solid gems. |
Thanks @evdevdev, sorry for the delay looking into this. I'm still a bit undecided about Solid Queue in development, which is why I haven't merged or requested changes yet.
🤔 What do you mean by "required"? Using the Puma plugin is not mandatory, you can run everything in development without it 😕 |
Prior to adding the plugin entry to puma.rb solid queue config and databases was not created. Added entries to queue.yml, recurring,yml, database.yml and environment/development.rb did not trigger any results when invoking rails db:prepare or rails db:migrate. The second i added the plugin entry to puma.rb solid_queue was enabled and database for queue,cable and cache was created for development. Ubuntu 24.04, rails 8.0.0.rc2, ruby 3.3.3 through rbenv. Fresh project initialized today as we were prepping a PoC for a new concept at work. |
I stand corrected. The culprit for database generation was not the plugin, but the solid queue is not being used until i add the plugin entry. The reason for databases not being created was database.yml: failed config:
As i simply added the required entries to the existing setup for development i did not add "primary:" resulting working entry:
but my rails does not provide any console data regarding solid queue and does not trigger internal scheduling until i add the plugin :solid_queue entry to puma.rb |
@rosa Thanks for getting back to me. If it's helpful, my primary motivation for having this run in development is so that I can get familiar with all the ergonomics of debugging, reading the logs, monitoring, and all that good stuff. I find myself feeling cautious or timid around having production behave differently from my local setup. I suppose the big fear is that when something catches fire in prod, I won't be able to exactly reproduce it locally. Out of curiosity, when you say that you're a bit undecided, what part is up in the air? I really love Solid Queue. Thank you for building it. |
Thanks @evdevdev, that's very helpful to know! Thanks so much for your kind words as well, really appreciate them ❤️
Configuring Solid Queue in development out of the box for Rails. It was discarded back when it was added as a default, but I think it'd be a good idea to have it. I need to do some convincing for that 😅 |
I'm playing around with a Rails 8 app, and I had a small bit of confusion in getting Solid Queue running in development. Therefore, I wrote out instructions that I think I would have found helpful. Maybe other folks will find these helpful as well?
I know that #238 mentioned a coming revamp to how Solid Queue works in development. If this clashes with that, I'd be happy to update it to reflect any other changes.